# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=conn
pkgver=1.0.39
pkgrel=1
pkgdesc='Small C library usefull to easy build ipv4/ipv6 network daemons/clients.'
url='http://kernel.embedromix.ro/us/'
license=('LGPL')
arch=('x86_64' 'aarch64')
depends=('glibc')
source=("http://kernel.embedromix.ro/us/Conn/Conn-$pkgver.tar.gz")
sha512sums=('ca5931de584afe291c2bfbe83f1fc8f661197b75c7a1e45e1e29f2dc7ecddc8148252f0caff49239bd26a4311101208409c5e773c74480ccbb60cb9a2abc81d9')

build() {
  cd "Conn-$pkgver"

  ./configure --prefix=/usr

  make
}

package() {
  cd "Conn-$pkgver"

  make DESTDIR="$pkgdir" install

  mv "$pkgdir/usr/lib64" "$pkgdir/usr/lib"
}

